package com.lingchou.cloud.process.client.dao;

import com.lingchou.cloud.process.api.dto.param.CommentVo;
import com.lingchou.cloud.process.api.dto.result.base.TaskRecordInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author : bruce.liu
 * @date : 2019/11/2413:00
 */
@Mapper
@Repository
public interface FlowAbleCommentDao {

    /**
     * 通过流程实例id获取审批意见列表
     * @param processInstanceId 流程实例id
     */
    List<CommentVo> getFlowCommentVosByProcessInstanceId(@Param("processInstanceId") String processInstanceId);

    /**
     * 返回所有任务
     */
    List<TaskRecordInfo> getTaskRecord(@Param("processInstanceId") String processInstanceId);
}
